vTPM/TPM2: Support TPM 2.0 bind and unbind data
authorQuan Xu <quan.xu@intel.com>
Thu, 15 Jan 2015 09:21:50 +0000 (04:21 -0500)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 28 Jan 2015 12:54:50 +0000 (12:54 +0000)
commitb8d8733f89d8c1ac4736f39da7eb4c53d213b88b
tree7e5cb0ba3f6918e07b1ecf2507e1d1aa2e3103e2
parent98cbe872432aa63db4c13810a3e32c03be8d5186
vTPM/TPM2: Support TPM 2.0 bind and unbind data

Bind data with TPM2_RSA_Encrypt, which performs RSA encryption using
the indicated padding scheme according to PKCS#1v2.1(PKCS#1). If the
scheme of keyHandle is TPM_ALG_NULL, then the caller may use inScheme
to specify the padding scheme.
Unbind data with TPM2_RSA_Decrypt, which performs RSA decryption using
the indicated padding scheme according to PKCS#1v2.1(PKCS#1).

Signed-off-by: Quan Xu <quan.xu@intel.com>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
stubdom/vtpmmgr/disk_tpm.c
stubdom/vtpmmgr/disk_tpm.h